export interface DispenseListResponse {
     code: string;
     msg: string;
     timestamp: number;
     data: Array<DispenseList>;
     ok: boolean;
};

export interface DispenseList {
     orderId: number;
     orderNo: string;
     dispenseStatus?: string;
     deliveryStatus?: string;
     patientId: number;
     patientName: string;
     visitNo: string;
     patientGender: string;
     diagnosisTime: string;
     dispenseTime?: string;
};

export interface DispenseListForm {
  patientName?: any
  visitDate?: any
  patientId?:any
  pageNo: number
  pageSize: number
}

export interface DispenseDetailResponse {
  code: string
  msg: string
  timestamp: number
  data: DispenseDetail
  ok: boolean
}
export interface DispenseDetail {
  orderId: number
  orderNo: string
  dispenseStatus: string
  deliveryStatus:string
  patientId: number
  patientName: string
  patientGender: string
  diagnosisTime: string
  visitNo: string
  doctorId: number
  doctorName: string
  deptId: number
  deptName: string
  diagnosis: string
  patientPhone: string
  idCard: string
  ageYear: number
  ageMonth: number
  solarBirthday: string
  lunarBirthday: string
  weight: number
  systolicBp: number
  diastolicBp: number
  rxList: RxList[]
}

export interface RxList {
  rxType: string
  rxId: number
  rxName: string
  storageId: number
  dispenseStatus: string
  detailList?: DetailList[]
  groupList?: GroupList[]
  tcmInfo?: TcmInfo
}

export interface DetailList {
  drugId: number
  drugName: string
  price: number
  usageCode: string
  frequencyCode: string
  dosage: number
  dosageUnit: string
  cycle: number
  cycleUnit: string
  remark: string
  totalOutQty: number
  totalOutQtyUnit: string
  subtotal: number
  drugDosage: number
  minPackQty: number
  minPackUnit: string
  packUnit: string
  dispenseQty: number
  currentDispenseQty: number
  deliveryQty: number
  currentDeliveryQty: number
}

export interface GroupList {
  groupName: string
  usageCode: string
  frequencyCode: string
  cycle: number
  cycleUnit: string
  ivDripRate: string
  subtotal: number
  detailList: DetailList2[]
}

export interface DetailList2 {
  drugId: number
  drugName: string
  price: number
  skinTest: string
  drugCategory: string
  dosage: number
  dosageUnit: string
  remark: string
  totalOutQty: number
  totalOutQtyUnit: string
  subtotal: number
  drugDosage: number
  minPackQty: number
  minPackUnit: string
  packUnit: string
  dispenseQty: number
  currentDispenseQty: number
  deliveryQty: number
  currentDeliveryQty: number
}

export interface TcmInfo {
  frequencyCode: string
  dailyDosage: string
  cycle: number
  cycleUnit: string
  usageCode: string
  singleDosage: string
  remark: string
  totalDoses: number
  subtotal: number
  detailList: DetailList3[]
  dispenseQty: number
  currentDispenseQty: number
  deliveryQty: number
  currentDeliveryQty: number
}

export interface DetailList3 {
  drugId: number
  drugName: string
  price: number
  dosage: number
  dosageUnit: string
  decotionMethod: string
  totalOutQty: number
  totalOutQtyUnit: string
  subtotal: number
}
